// import request from '@/config/axios'
import type { RegisterVO, UserLoginVO } from './types'
import { API_DOMAINS, request } from '@/http/request/alova'

export function getTenantIdByName(name: string): Promise<number> {
  return request.Get(`/system/tenant/get-id-by-name?name=${name}`)
}
export const login = (data: UserLoginVO) => {
  return request.Post('/worker/auth/login', data)
}
export const logout = () => {
  return request.Post('/worker/auth/logout')
}

// // 注册
// export const register = (data: RegisterVO) => {
//   return request.Post({ url: '/system/auth/register', data })
// }
